/** 清楚内外边距 */
*{
    margin: 0;
    padding: 0;
    /** 边框无效 */
    outline: none;
}

/* 设置的边框和内边距的值是包含在总宽高内的 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/** 去除number 输入框右边上下箭头 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type="number"]{
    -moz-appearance: textfield;
}

/* 主要内容区域自适应 */
.container {
    width: 100%;
    min-height: 75vh;
    margin: auto;
    padding-bottom: 35px;
}

/** 主图区域 */
.main-image{
    position: relative;
    height: 600px;
    background-color: #d9d9d9;
}

/** 主图 */
.main-image .main-bg{
    height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}

/** 主图文字区域 */
.main-image>div:nth-child(2){
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #ffffff;
    /** 文字间距 */
    letter-spacing: 3px;
}

/** 大标题 */
.main-image>div:nth-child(2)>h1{
    margin-bottom: 10px;
}

/** 内容区域 */
.main-content{
    background-color: #d9d9d9;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 0 0 10px 10px ;
    font-family: cursive;
}

/** 置顶 */
.post-top{
    z-index: 10;
    width: 80px;
    height: 80px;
    overflow: hidden;
    position: absolute;
}

/** 置顶 */
.post-top div{
    line-height: 18px;
    text-align: center;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    position: relative;
    padding: 3px 0;
    top: 10px;
    left: -28px;
    width: 100px;
    background-color: #ff3b00;
    color: #fff;
    box-shadow: -3px 5px 6px -5px rgba(0,0,0,0.5);
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
